<template>
  <h3>Father 组件 --- {{ countFromSon }}</h3>
  <hr />

  <Son @count-change="countChangeHandler" />
</template>

<script setup>
import Son from './Son.vue'
import { ref } from 'vue'

const countFromSon = ref(0)

const countChangeHandler = (count, flag, info) => {
  console.log('触发了父组件绑定的事件监听处理函数', count, flag, info)
  countFromSon.value = count
}
</script>
